export class Storage {
    upload(file) {
        throw new Error("Method 'upload()' must be implemented.");
    }
}

export class Uploader {
    constructor(strategy) {
        this.strategy = strategy;
    }
  
    setStrategy(strategy) {
        this.strategy = strategy;
    }
  
    upload(file) {
        this.strategy.upload(file);
    }
}
